package com.carbohydrate42.kotlin_compose_demo

import android.annotation.SuppressLint
import android.app.Application
import android.content.Context
import com.carbohydrate42.kotlin_compose_demo.handler.GlobalExceptionHandler


class MainApplication : Application() {
    companion object{
        @SuppressLint("StaticFieldLeak")
        private lateinit var context: Context

        fun getContext(): Context {
            return context
        }

    }

    override fun onCreate() {
        super.onCreate()
        context = applicationContext
        GlobalExceptionHandler.getInstance(this)
    }
}